Xbasic

HOSTAVAILABLE Function

Syntax

Result_Flag as L = HostAvailable([C host [,N port ]])

Arguments

Result_Flagt

.T. = Specified host responded properly. .F. = Specified host did not respond properly. Character

host

Optional. Default = "www.google.com". Character

port

Optional. Default = 80. Numeric

Description

The HOSTAVAILABLE() function returns .T. (TRUE) if the specified host responds properly. This can be used to test for a functional network/Internet connection between the workstation and specified host.

Example

hostavailable("www.alphasoftware.com",80)

See Also